package jnpf.model.visiual.fields.config;


import jnpf.model.visiual.fields.FieLdsModel;
import lombok.Data;

import java.util.List;

/**
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 * @date 2021/3/16 8:47
 */
@Data
public class ConfigModel {
    private String label;
    private String labelWidth;
    private Boolean showLabel;
    private Boolean changeTag;
    private Boolean border;
    private String tag;
    private String tagIcon;
    //是否必填
    private boolean required = false;
    //是否唯一
    private Boolean unique = false;
    private String layout;
    private String dataType;
    private Integer span = 24;
    private String jnpfKey;
    private String dictionaryType;
    private Integer formId;
    private String relationTable;
    private Long renderKey;
    private Integer columnWidth;
    private List<RegListModel> regList;
    private Object defaultValue;
    private String active;

    /**
     * 提示语
     */
    private String title;
    private String type;
    private Boolean showIcon;
    private Boolean closable;
    /**
     * app静态数据
     */
    private String options;
    /**
     * 判断defaultValue类型
     */
    private String valueType;
    private String propsUrl;
    private String optionType;
    private ConfigPropsModel props;
    /**
     * 子表添加字段
     */
    private Boolean showTitle;
    private String tableName;
    private List<FieLdsModel> children;

    /**
     * 多端显示
     */
    private String visibility="[\"app\",\"pc\"]" ;

    /**
     * 单据规则使用
     */
    private String rule;

    /**
     * 验证规则触发方式
     */
    private String trigger="blur";
    /**
     * 隐藏
     */
    private Boolean noShow=false;
    /**
     * app代码生成器
     */
    private int childNum;
    private String model;

    /**
     * 代码生成器多端显示
     */
    private boolean app = true;
    private boolean pc = true;

    /**
     * 高级查询
     */
    private String parentVModel;
}
